package com.heima.admin.job;

import com.heima.admin.service.WemediaNewsAutoService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 自媒体文章定时扫描自动审核job
 */
@Slf4j
@Component
public class WemediaAutoAuditJob {

    @Autowired
    private WemediaNewsAutoService wemediaNewsAutoService;

    @XxlJob("wmNewsAutoAuditJob")
    public ReturnT<String> wemediaAutoAudit(String param){
        log.info("wmNewsAutoAuditJob定时任务执行了");
        //自媒体文章定时扫描自动审核
        wemediaNewsAutoService.wemediaAutoAudit();
        return ReturnT.SUCCESS;
    }

}
